  /**
   * Generate time : 2016-03-28 11:23:13
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cc.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCCProduceproblemOperation 
 * table comment : 生产问题操作历史记录 
 */
public class ZMCCProduceproblemOperation extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdRecordId = " ";		/* 生产问题记录ID*/
	private String fdRecordType = " ";		/* 记录类型*/
	private String fdOperatePerson = " ";		/* 操作人*/
	private String fdOperateType = " ";		/* 操作类型*/
	private String fdCreateTime = " ";		/* 创建时间*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRecordId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产问题记录ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRecordType");
	eiColumn.setFieldLength(19);	
	eiColumn.setDescName("记录类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOperatePerson");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("操作人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOperateType");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("操作类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("创建时间");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCCProduceproblemOperation() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdRecordId - 生产问题记录ID
	 * @return the fdRecordId
	 */
	public String getFdRecordId() {
		return this.fdRecordId;
	}
	
	/**
	 * set the fdRecordId - 生产问题记录ID
	 */
	public void setFdRecordId(String fdRecordId) {
		this.fdRecordId = fdRecordId;
	}
	/**
	 * get the fdRecordType - 记录类型
	 * @return the fdRecordType
	 */
	public String getFdRecordType() {
		return this.fdRecordType;
	}
	
	/**
	 * set the fdRecordType - 记录类型
	 */
	public void setFdRecordType(String fdRecordType) {
		this.fdRecordType = fdRecordType;
	}
	/**
	 * get the fdOperatePerson - 操作人
	 * @return the fdOperatePerson
	 */
	public String getFdOperatePerson() {
		return this.fdOperatePerson;
	}
	
	/**
	 * set the fdOperatePerson - 操作人
	 */
	public void setFdOperatePerson(String fdOperatePerson) {
		this.fdOperatePerson = fdOperatePerson;
	}
	/**
	 * get the fdOperateType - 操作类型
	 * @return the fdOperateType
	 */
	public String getFdOperateType() {
		return this.fdOperateType;
	}
	
	/**
	 * set the fdOperateType - 操作类型
	 */
	public void setFdOperateType(String fdOperateType) {
		this.fdOperateType = fdOperateType;
	}
	/**
	 * get the fdCreateTime - 创建时间
	 * @return the fdCreateTime
	 */
	public String getFdCreateTime() {
		return this.fdCreateTime;
	}
	
	/**
	 * set the fdCreateTime - 创建时间
	 */
	public void setFdCreateTime(String fdCreateTime) {
		this.fdCreateTime = fdCreateTime;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecordId")), fdRecordId));
		setFdRecordType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecordType")), fdRecordType));
		setFdOperatePerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOperatePerson")), fdOperatePerson));
		setFdOperateType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOperateType")), fdOperateType));
		setFdCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTime")), fdCreateTime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdRecordId",StringUtils.toString(fdRecordId, eiMetadata.getMeta("fdRecordId")));	
			map.put("fdRecordType",StringUtils.toString(fdRecordType, eiMetadata.getMeta("fdRecordType")));	
			map.put("fdOperatePerson",StringUtils.toString(fdOperatePerson, eiMetadata.getMeta("fdOperatePerson")));	
			map.put("fdOperateType",StringUtils.toString(fdOperateType, eiMetadata.getMeta("fdOperateType")));	
			map.put("fdCreateTime",StringUtils.toString(fdCreateTime, eiMetadata.getMeta("fdCreateTime")));	
			
		return map;
	
	}
}